/**
 * 商品卡片
 *
 */
import { Card } from "@nutui/nutui-react-taro";
import { View } from "@tarojs/components";

const Component = ({ data = {} }: any) => {
  return (
    <View className="mt-2 px-2">
      <View className="text-[#999] text-[24rpx] mb-1 ml-1">商品内容</View>
      {data.list?.map((item) => (
        <Card
          key={item.id}
          className="mt-1"
          src={item.src}
          title={item.title}
          price={item.price}
          vipPrice={item.vipPrice}
          shopDescription={item.shopDescription}
          delivery={item.delivery}
          shopName={item.shopName}
        />
      ))}
    </View>
  );
};
export default Component;
